package com.rerun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.rerun.entity.EduBackground;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Edu background mapper.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /9/29 9:05
 */
public interface EduBackgroundMapper extends BaseMapper<EduBackground>{
    /**
     * Select by phone number edu background.
     *
     * @param phoneNumber the phone number
     * @return the edu background
     */
    EduBackground selectByPhoneNumber(String phoneNumber);

    /**
     * Select by member id edu background.
     *
     * @param memberId the member id
     * @return the edu background
     */
    List<EduBackground> selectByMemberId(@Param("memberId") String memberId);

    /**
     *  更新memberId  定时任务专用.
     *
     * @param phoneNumber the phone number
     * @return the integer
     */
    Integer updateMemberIdTask(String phoneNumber);

    /**
     * 查询没有memberId 的edu的电话号码 用于定时任务.
     *
     * @return the list
     */
    List<String>  selectPhoneNumberNoMemberId();
}
